package org.bt.auth.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.bt.common.entity.DataEntity;
import org.bt.common.validator.aspect.Email;
import org.bt.common.validator.aspect.Mobile;

/**
 * @author zwj
 * @date 2022/12/9
 * @description TODO
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class UserVo extends DataEntity<UserVo> {

    private String id;

    @ApiModelProperty(value = "用户账号")
    private String username;

    @ApiModelProperty(value = "用户名称")
    private String name;

    @ApiModelProperty(value = "邮箱地址")
    @Email
    private String email;

    @ApiModelProperty(value = "手机号")
    @Mobile
    private String phone;

    @TableField(value = "available")
    @ApiModelProperty(value = "可用状态(1:可用; 0:不可用)")
    private int available;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "三方用户表.三方用户账号")
    private String thirdUserUsername;
}
